package top.bbman.boot.ali.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;
import top.bbman.boot.repository.constant.PeaConfigName;

/**
 * 阿里云的config
 *
 * @author 祥霸
 * @version 1.0
 */
@Data
@Component(PeaConfigName.Ali.ALI_YUN)
@RefreshScope
public class AliYunConfig {
    @Value("${bb-man.ali.ali-yun.access-key-id:}")
    private String accessKeyId;

    @Value("${bb-man.ali.ali-yun.access-secret:}")
    private String accessSecret;

    @Value("${bb-man.ali.ali-yun.oss.region-id:cn-hangzhou}")
    private String regionId;
}
